package com.iwayin.core.bo.follow;

import java.util.List;

import com.iwayin.core.dataobject.FollowDO;
import com.iwayin.core.dataobject.UserDO;

public interface FollowBO {
	/**
	 * @author LiuWenLong
	 * @version 2012-3-5下午8:25:08
	 * @descriptions 添加关注
	 * @param follow
	 */
	void addFollow(FollowDO follow);

	/**
	 * @author LiuWenLong
	 * @version 2012-3-5下午8:33:06
	 * @descriptions 取消关注
	 * @param follow
	 */
	void deleteFollow(FollowDO follow);

	/**
	 * @param loginUserId当前登录用户id
	 * @param query
	 * @return
	 * @author harry
	 */
	public List<UserDO> findFollowList(Long loginUserId, FollowDO query);
	
	/**
	 * @author ZhangLei
	 * @descriptions查询当天follow最多的用户列表
	 * @param size 展示数量
	 */
	public List<UserDO>  findFollowMostToday(Long size);
	/**
	 * 检测是否关注
	 * @param userId
	 * @param followId
	 * @return
	 */
	public boolean checkFollow(Long userId,Long followId);
}
